package com.wechat.testutils;

import com.wechat.pojo.WechatImageMessage;
import com.wechat.pojo.WechatImageTextMessage;
import com.wechat.pojo.WechatTextMessage;
import com.wechat.utils.PropertiesSingleton;
import com.wechat.utils.XmlUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/12/21 0021.
 */
public class testXmlUtils {

/*    public static void main(String []args){
        List<WechatImageMessage.Image> image = new ArrayList<WechatImageMessage.Image>();
        image.add(new WechatImageMessage.Image("123456"));
        *//*String str = objectConvertToXml(new WechatTextMessage("","","","",""));*//*
        // List<WechatImageMessage.Image> imageList = new ArrayList<WechatImageMessage.Image>();
        String str = XmlUtils.objectConvertToXml(new WechatImageMessage("ss","ss","ss","ss",image));
        *//*imageList.add()*//*
        WechatImageMessage wechatImageMessage =   new WechatImageMessage();
        System.out.println(str);
    }*/


    public static void main(String []args){
     /*   List<WechatImageTextMessage.Article> article = new ArrayList<WechatImageTextMessage.Article>();
        List<WechatImageTextMessage.Article.Item> items = new ArrayList<WechatImageTextMessage.Article.Item>();
        WechatImageTextMessage.Article.Item item = new WechatImageTextMessage.Article.Item("","","","");
        items.add(item);
        article.add(new WechatImageTextMessage.Article(items));
        String str = XmlUtils.objectConvertToXml(new WechatImageTextMessage("","","","","",article));*/


         List<WechatImageMessage.Image> imageList = new ArrayList<WechatImageMessage.Image>();
        WechatImageMessage.Image image = new WechatImageMessage.Image("99999");
      // image.setMediaId("1234546456");
        imageList.add(image);
         String str = XmlUtils.objectConvertToXml(new WechatImageMessage("ss","ss","ss","ss",imageList));

        System.out.println(str);


    /*    WechatTextMessage wechatTextMessage = new WechatTextMessage("","","","","");
        String str = XmlUtils.objectConvertToXml(wechatTextMessage);
        System.out.println(str);
*/
    }


}
